﻿<u:HeaderedToolItem x:Class="WickedFlame.VecDraw.Plugins.HistoryViewer"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:u="clr-namespace:WickedFlame.Util.Controls;assembly=VecDraw.Util"
    xmlns:h="clr-namespace:WickedFlame.Core.History;assembly=VecDraw.Core"
    Title="History" Icon="/VecDraw.Resources;component/Images/VecDraw.Icon.History.png"  >
    
    <Control.Resources>

        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="../Resources/HistoryCommandDataTemplates.xaml" />
                <ResourceDictionary Source="../Resources/ControlTemplates.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>

    </Control.Resources>

    <Grid>
        <ListBox Name="historyList" SnapsToDevicePixels="True" ItemsSource="{Binding HistoryManager.HistoryList}" SelectedIndex="{Binding HistoryManager.SelectedHistoryIndex}" MaxHeight="150" MinHeight="60" Foreground="WhiteSmoke" Background="Transparent" BorderBrush="Transparent" />
    </Grid>
</u:HeaderedToolItem>
